//
//  UIScreen+Extension.swift
//  mySinaBlog
//
//  Created by whtapple on 3/29/16.
//  Copyright © 2016 whtapple. All rights reserved.
//

import UIKit
extension UIScreen{
    //计算型只读属性
    class var width: CGFloat {
        get{
            return UIScreen.mainScreen().bounds.size.width
        }
    }
    //计算型只读属性
    class var height: CGFloat {
        get{
            return UIScreen.mainScreen().bounds.size.height
        }
    }
}
